package com.chinasoft.config;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.springframework.context.annotation.*;

import java.io.InputStream;
import java.util.Random;

@Configuration
@ComponentScan({"com.chinasoft.service", "com.chinasoft.advice"})
@Import({MybatisConfig.class, JdbcConfig.class})
@EnableAspectJAutoProxy  // 代理对象自动替换 目标对象
public class SpringConfig {

    @Bean
    public Random getRandom() {

        return new Random();
    }
}
